<template>
  <div>
    <div>{{ msg }}</div>
    <button @click="fn">反转世界</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      msg: "Hellow word",
    };
  },
  methods: {
    fn() {
      this.msg = this.msg.split("").reverse().join("");
    },
  },
};
</script>

<style scoped lang="less"></style>
